<template>
  <van-grid column-num="5">
    <van-grid-item
      v-for="(item,idx) of data.category"
      :key="item.mallCategoryId"
      :icon="$resetUrl(item.image)"
      :text="item.mallCategoryName"
      :to="{ path: '/list', query:{idx:idx} }"
    />
  </van-grid>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      require: true,
    },
  },
};
</script>

<style>
</style>